# coding=utf-8
import unittest

class MyTest(unittest.TestCase):
    def setUp(self):
        unittest.TestCase.setUp(self)
        print 'set up method invoked!'
    
    def tearDown(self):
        unittest.TestCase.tearDown(self) 
        print 'tear down method invoked!'
        
    def testMe(self):
        a = 1
        self.assertEqual(a, 1, 'value not equals!')
    
    def testFindJob(self,flag=1):
        self.assertEqual(flag, self.findJob(), 'job not found')
    
    def findJob(self):
        import time
        a = time.strftime('%S',time.gmtime())
        print 'second is %s' % (a)
        if int(a) % 2 == 0:
            return True
        else:
            return False

        
if __name__ == '__main__':
    unittest.main()
